home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compendium Deluxe 2
/
LSD and 17bit Compendium Deluxe - Volume II.iso
/
a
/
prog
/
misc
/
xes120.lha
/
XES
/
REXX
/
Diary.xdme
< prev
next >
Wrap
Text File
|
1994-11-09
|
1KB
|
48 lines
/* Diary.xdme */
/* An ARexx script for maintaining a diary with XDME */
if ~show("L","rexxreqtools.library") then
if ~addlib("rexxreqtools.library", 0, -30) then exit
/* Change these variables to suit your own needs */
path = "Work:Texts/Diary/"
name = "Fergus Duniho"
today = date(s) || ".txt"
tagstr = "rt_reqpos=reqpos_centerscr rtfi_flags=freqf_patgad"
fullname = rtfilerequest(path,today,"Select Diary Entry ...",,tagstr)
if abbrev(fullname,path) = 0 then exit
entry = delstr(fullname,1,length(path))
password = rtgetstring(,,"Please Enter Password")
newwindow
if exists(fullname) then do
xcom = 'execute (copy' fullname 't:temp)'
xcom
xcom = 'execute (xpack t:temp password "' || password || '")'
xcom
newfile "t:temp"
chfilename fullname
call delete("t:temp")
if entry < today then do
viewmode on
end
else do
(bottom downadd return)
C = "printf (((((( %s ))))))" time(c)
C
(justify center downadd downadd col 9)
end
end
else do
C1 = "insert (The Diary of" name "for" date(w) date(n) ")"
C2 = "printf (((((( %s ))))))" time(c)
C1
(justify center downadd downadd)
C2
(justify center downadd downadd col 9)
chfilename fullname
end
C = "mw+ settvar method IDEA settvar password" password
C